<form id="pagerForm" method="post" action="">
	<input type="hidden" name="pageNum" value="{$pageNum}" />
	<input type="hidden" name="numPerPage" value="{$numPerPage}" />
	<input type="hidden" name="orderField" value="{$orderField}" />
	<input type="hidden" name="orderDirection" value="{$orderDirection}" />
	<input type="hidden" name="keywords" value="{$keywords}" />
	<input type="hidden" name="sfield" value="{$sfield}" />
	<input type="hidden" name="platform" value="{$platform}" />
</form>

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="" method="post">
		<input type="hidden" name="m" value="{$module_name}" />
		<input type="hidden" name="a" value="{$action_name}" />
	<div class="searchBar">
		<ul class="searchContent">
			<li style="width:210px;">
				<label style="width:60px;">关键字：</label>
				<input type="text" class="autoinput" name="keywords" value="{$keywords}" style="width:120px;"/>
			</li>
			<li style="width:120px;">
			<select name="sfield" class="">
				<option value="all" {if $wherefields=='all'}selected="selected"{/if}>全部</option>
				<option value="c.order_id" {if $wherefields=='order_id'}selected="selected"{/if}>订单ID</option>
				<option value="c.userid" {if $wherefields=='userid'}selected="selected"{/if}>用户ID</option>
				<option value="o.sn" {if $wherefields=='sn'}selected="selected"{/if}>订单编号</option>s
			</select>
			<input type="hidden" name="sfield_name" value="c.order_id,c.userid,o.sn" />
			</li>
			<div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
		</ul>
	</div>
	</form>
</div>
<div class="pageContent">
	<div id="order_list">
		<table class="list" width="98%" targetType="navTab" layoutH="65">
		<thead>
			<tr>
				<th width="22"><input type="checkbox" group="ids[]" class="checkboxCtrl"></th>
				<th width="50">编号</th>
				<th width="60" orderField="id" {if $orderField=='id'}class="{$orderDirection}"{/if}>订单ID</th>
				<th width="100" orderField="sn" {if $orderField=='sn'}class="{$orderDirection}"{/if}>订单号</th>
				<th width="100">订单金额</th>
				<th width="120" orderField="of_userid" {if $orderField=='of_userid'}class="{$orderDirection}"{/if}>下单时间</th>
				<th width="50" orderField="platform" {if $orderField=='platform'}class="{$orderDirection}"{/if}>用户ID</th>
				<th width="50" orderField="platform" {if $orderField=='platform'}class="{$orderDirection}"{/if}>用户</th>
				<th width="180" orderField="platform" {if $orderField=='platform'}class="{$orderDirection}"{/if}>产品名称</th>
				<th width="50" orderField="subject" {if $orderField=='subject'}class="{$orderDirection}"{/if}>产品数量</th>
				<th width="50" orderField="value" {if $orderField=='value'}class="{$orderDirection}"{/if}>金额</th>
				<th width="80" orderField="of_status" {if $orderField=='of_status'}class="{$orderDirection}"{/if}>优惠金额</th>
				<th width="30" >操作</th>
			</tr>
		</thead>
		<tbody>
<volist name="list" id="vo">
			<tr target="sid_dv" rel="{$vo['id']}">
				<td><input name="ids[]" value="{$vo['id']}" type="checkbox"></td>
				<td>{$vo['couid']}</td>
				<td>{$vo['order_id']}</td>
				<td><a title="{$vo['sn']} 订单查看" target="dialog" width="800" height="550" href="{:U('Order/detail',array('id'=>$vo['order_id']))}">{$vo['sn']}</a></td>
				<td>{$vo['amount']/100}</td>
				<td>{$vo['ctime']|date="Y-m-d H:i:s",###}</td>
				<td>{$vo['userid']}</td>
				<td>{$vo['username']}</td>
				<td>{$vo['name']}</td>
				<td>{$vo['number']}</td>
				<td>{$vo['priceall']/100}</td>
				<td>{$vo['value']/100}</td>
				<td><a title="{$vo['sn']} 查看" target="dialog" width="800" height="550" href="{:U('Order/detail',array('id'=>$vo['order_id']))}" class="btnInfo">查看</a></td>
			</tr>
</volist>
		</tbody>
	</table>
	</div>
<include file="Index:pages" />
</div>
